package br.com.consignum.util;


import static br.com.consignum.formatacao.Formatacao.carregarProperties;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

/**
 * Servlet que carrega os properties do Sistema
 * 
 * @author jackson.silva
 */
public class PropertiesServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;

	private static final String[] arquivos = { "label", "messages" };

	@Override
	public void init() throws ServletException {
		for ( int i = 0; i < arquivos.length; i++ ) {
			carregarProperties( PropertiesServlet.class.getClassLoader(), arquivos[i] );
		}
	}
}
